import request from '@/utils/request'

// 查询企业列表
export function listAudit(query) {
  return request({
    url: '/sys/enterprise/selectSysEnterpriseListByInit',
    method: 'post',
    params: query
  })
}
// 判断企业或者分公司是否已初始化
export function initialized(enterpriseId, subCompany) {
  const data = {
    'enterpriseId': enterpriseId,
    'subCompany': subCompany
  }
  return request({
    url: '/sys/enterprise/initialized',
    method: 'post',
    params: data
  })
}

// 企业初始话添加
export function initAdd(data) {
  return request({
    url: '/sys/enterprise/initAdd',
    method: 'post',
    data,
    headers: { 'content-type': 'application/json' }
  })
}

// 获取企业套餐列表
// ---wt(system->sys)
export function listSysCompanyTemp() {
  return request({
    url: '/sys/sysCompanyTemp/list',
    method: 'post'
  })
}
